package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PKuaidiconfigMapper;
import com.haima.ziliao.domain.PKuaidiconfig;
import com.haima.ziliao.service.IPKuaidiconfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 邮费配置Service业务层处理
 * 
 * @author hima
 * @date 2024-11-25
 */
@Service
public class PKuaidiconfigServiceImpl extends ServiceImpl<PKuaidiconfigMapper, PKuaidiconfig> implements IPKuaidiconfigService
{
    @Autowired
    private PKuaidiconfigMapper pKuaidiconfigMapper;

    /**
     * 查询邮费配置
     * 
     * @param id 邮费配置主键
     * @return 邮费配置
     */
    @Override
    public PKuaidiconfig selectPKuaidiconfigById(Long id)
    {
        return pKuaidiconfigMapper.selectPKuaidiconfigById(id);
    }

    /**
     * 查询邮费配置列表
     * 
     * @param pKuaidiconfig 邮费配置
     * @return 邮费配置
     */
    @Override
    public List<PKuaidiconfig> selectPKuaidiconfigList(PKuaidiconfig pKuaidiconfig)
    {
        return pKuaidiconfigMapper.selectPKuaidiconfigList(pKuaidiconfig);
    }

    /**
     * 新增邮费配置
     * 
     * @param pKuaidiconfig 邮费配置
     * @return 结果
     */
    @Override
    public int insertPKuaidiconfig(PKuaidiconfig pKuaidiconfig)
    {
        return pKuaidiconfigMapper.insertPKuaidiconfig(pKuaidiconfig);
    }

    /**
     * 修改邮费配置
     * 
     * @param pKuaidiconfig 邮费配置
     * @return 结果
     */
    @Override
    public int updatePKuaidiconfig(PKuaidiconfig pKuaidiconfig)
    {
        return pKuaidiconfigMapper.updatePKuaidiconfig(pKuaidiconfig);
    }

    /**
     * 批量删除邮费配置
     * 
     * @param ids 需要删除的邮费配置主键
     * @return 结果
     */
    @Override
    public int deletePKuaidiconfigByIds(Long[] ids)
    {
        return pKuaidiconfigMapper.deletePKuaidiconfigByIds(ids);
    }

    /**
     * 删除邮费配置信息
     * 
     * @param id 邮费配置主键
     * @return 结果
     */
    @Override
    public int deletePKuaidiconfigById(Long id)
    {
        return pKuaidiconfigMapper.deletePKuaidiconfigById(id);
    }
}
